using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;


namespace Net.SamuelChen.Libs.WinForm.Calendar
{
	/// <summary>
	/// Summary description for DayScheduleListView.
	/// </summary>
	public class DayListView : System.Windows.Forms.ListView
	{
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

//		private ScheduleItem _selectedScheduleItem; 
//		private string[] _fieldNames;

		public DayListView()
		{
			// This call is required by the Windows.Forms Form Designer.
			InitializeComponent();

			// TODO: Add any initialization after the InitializeComponent call

		}

//		public DayListView(string[] FieldNames) {
//			InitializeComponent();
//
//			_fieldNames = FieldNames;
//		}

		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Component Designer generated code
		/// <summary> 
		/// Required method for Designer support - do not modify 
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			// 
			// DayListView
			// 
			this.BackColor = System.Drawing.SystemColors.Info;
			this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.CheckBoxes = true;
			this.FullRowSelect = true;
			this.GridLines = true;
			this.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
			this.HoverSelection = true;
			this.LabelEdit = true;
			this.View = System.Windows.Forms.View.Details;

		}
		#endregion

//		public ScheduleItem SelectedScheduleItem {
//			get { return _selectedScheduleItem; }
//		}
//
//		public string[] FieldNames {
//			get { return _fieldNames; }
//		}
//
//		protected override void OnSelectedIndexChanged(EventArgs e) {
//			ListViewItem lvItem = this.SelectedItems[0];   
//
//			if (lvItem.SubItems.Count > 0) {
//				SelectedScheduleItem.ID = 
//			}
//
//			base.OnSelectedIndexChanged (e);
//		}

	}
}
